// 导入二次封装axios
import koi from "@/utils/axios.ts";

// 统一管理接口
enum API {
  LIST_DICT_DATA = "/blog/sysDictData/website/listDataByType",
  LIST_PAGE = "/blog/blogWebsite/website/listPage",
  APPLY = "/blog/blogWebsite/website/apply"
}

// 友链分类
export const listDictData = () => {
  return koi.get(API.LIST_DICT_DATA + "/blog_friend_type");
};

// 分页查询
export const listPage = (params: any) => {
  return koi.get(API.LIST_PAGE, params);
};

// 申请网站
export const apply = (data: any) => {
  return koi.post(API.APPLY, data);
};

